package com.ruoyi.manage.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 article
 * 
 * @author 陈冲
 * @date 2024-11-16
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 文章摘要 */
    @Excel(name = "文章摘要")
    private String summary;

    /** 所属分类ID，-1代表所属的分类被删除了 */
    @Excel(name = "所属分类ID，-1代表所属的分类被删除了")
    private String categoryId;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String thumbnail;

    /** 是否置顶(0否 1是) */
    @Excel(name = "是否置顶(0否 1是)")
    private Long isTop;

    /** 发布状态(0发布 1草稿) */
    @Excel(name = "发布状态(0发布 1草稿)")
    private Long status;

    /** 访问量 */
    @Excel(name = "访问量")
    private Long viewCount;

    /** 逻辑删除 */
    private Long delFlag;

    /*文章来源*/
    private String articleOrigin;

    public String getArticleOrigin() {
        return articleOrigin;
    }

    public void setArticleOrigin(String articleOrigin) {
        this.articleOrigin = articleOrigin;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setCategoryId(String categoryId)
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId()
    {
        return categoryId;
    }
    public void setThumbnail(String thumbnail) 
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail() 
    {
        return thumbnail;
    }
    public void setIsTop(Long isTop) 
    {
        this.isTop = isTop;
    }

    public Long getIsTop() 
    {
        return isTop;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("summary", getSummary())
            .append("categoryId", getCategoryId())
            .append("thumbnail", getThumbnail())
            .append("isTop", getIsTop())
            .append("status", getStatus())
            .append("viewCount", getViewCount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag()).append("articleOrigin",getArticleOrigin())
            .toString();
    }
}
